package Day2;

import java.util.Scanner;
// 1:无需package
// 2: 类名必须Main, 不可修改

/**
 * 2020JavaB真题: 成绩分析
 * https://www.lanqiao.cn/problems/497/learning/?problem_list_id=2&page=1
 */
public class Main1 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        int n = scan.nextInt();
        int max = 0 , min = 101;
        double sum = 0;
        for(int i = 0; i < n; i++){
          int x = scan.nextInt();
          if(max < x){
            max = x;
          }
          if(min > x){
            min = x;
          }
          sum += x;
        }
        System.out.println(max);
        System.out.println(min);
        System.out.printf("%.2f",sum / n);
        
        scan.close();
    }
}